import VueRouter from "vue-router";
import Vue from "vue"
import MyLogin from "@/views/MyLogin"
import MyInfo from "@/views/MyInfo"
import NotFound from "@/views/NotFound"
import MyUser from "@/views/MyUser"
import MyArticle from "@/views/MyArticle.vue"
import HangZhou from "@/views/HangZhou.vue"
import WenZhou from "@/views/WenZhou.vue"
import ZheJiang from "@/views/ZheJiang.vue"
Vue.use(VueRouter)
const router = new VueRouter({
    // mode:"history",
    routes: [
        {path:"/",redirect:"/login"},
        { path: '/login', component: MyLogin },
        { path: "/info", component: MyInfo },
        { path: "/myuser", component: MyUser },
        { path: "/article/:id", component: MyArticle, name: 'article' },
        {
            path: "/zhejiang",
            component: ZheJiang,
            children: [
                { path: "hangzhou", component: HangZhou },
                { path: "wenzhou", component: WenZhou },
            ]
        },
        {path:"*",component:NotFound}
    ],
/*     linkActiveClass: 'HM',
    linkExactActiveClass:'Hme', */
})
export default router